package xml;

/**
 * This is just a wrapper for text in an XML file so that it can be stored with {@link Tag}s.
 *
 * @see XML
 * @author Neil Dickson
 */
public class Text implements Element {
	private	String	text;
	public Text(String text) {
		this.text = text;
	}
	public String get() {
		return text;
	}
	public String toString() {
		return XML.escape(text);
	}
}
